﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using MyApp.Data.Resources;
using System.Data.Objects.DataClasses;
using System.ServiceModel.DomainServices.Server;

namespace MyApp.Data.Model
{
#pragma warning disable 649
    [MetadataType(typeof(Customer.CustomerMetadata))]
	public partial class Customer
	{
        internal class CustomerMetadata
        {
            [Display(ResourceType = typeof(Metadata), Name = "MyApp_Customer_Number")]
            public int Number;

            [Display(ResourceType = typeof(Metadata), Name = "CommonProperties_Email")]
            public string Email;

            [Include]
            public EntityCollection<Order> Orders;
        }
    }
#pragma warning restore 649
}
